12fa7dc0f250350a0afff7c848c3fad5079260a9,app/src/main/java/org/asdtm/goodweather/WeatherJSONParser.java,WeatherJSONParser,getWeather,#String#,14

Before Change


        //weather.temperature.setMinTemp(getFloat("temp_min", mainObj));
        //weather.temperature.setMaxTemp(getFloat("temp_max", mainObj));
        if (mainObj.has("pressure")) {
            weather.currentCondition.setPressure(getFloat("pressure", mainObj));
        }
        if (mainObj.has("humidity")) {
            weather.currentCondition.setHumidity(mainObj.getInt("humidity"));

After Change


            weather.temperature.setTemp(Float.parseFloat(mainObj.getString("temp")));
        }
        if (mainObj.has("pressure")) {
            weather.currentCondition.setPressure(Float.parseFloat(mainObj.getString("pressure")));
        }
        if (mainObj.has("humidity")) {
            weather.currentCondition.setHumidity(mainObj.getInt("humidity"));